package com.weipai.springboot.module.service;

import com.weipai.springboot.model.Demand;
import com.weipai.springboot.model.api.Response;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/06 17:59
 * <p>
 * 需求
 */
public interface DemandService {


    //更改需求的状态--0未接单，1客服介入，2已完成，3已驳回
    Response changeStatus(String id, Integer status);

    //查询数据
    List<Demand> selectAllByDemand(String demandCategoryId);

    //查询需求详情
    Response getDemandById(String id);

    //根据需求状态分页查询
    Response selectDemandByStatus(Integer page, Integer size, String draw, Integer demandStatus);

    //首页需求
    Response demandListByCity( Integer status, Integer page, Integer size);

    Response demandListByCustomer(String customerId, Integer status, Integer page, Integer size);

    Response handlePending(String demandId, String name, String loginName);

    Response saveArtisanInfo(String demandId, String name, String mobile, int amount);

    Response complete(String demandId);

    Response update(Demand demand);

    Response demandListByArtisanId(String artisanId, Integer status, Integer page, Integer size);

    void artisanMoney() throws Exception;
}
